package User;

import Operation.Operation;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2023-12-31
 * Time: 21:37
 */
public abstract class User {
    private String name;
    public Operation[] ioPerations;
    public User(String name) {
        this.name = name;
    }
    public abstract int menu();

    public void doOperation(int choice , BookList book){
        Operation ioPeration = this.ioPerations[choice];
        ioPeration.work(book);

    }
}
